﻿<UserControl  
    x:Class="PlayGround.WPF.SeverityList"
   
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               xmlns:de="clr-namespace:PlayGround.WPF"
             mc:Ignorable="d" d:DesignHeight="68" d:DesignWidth="215">
    <UserControl.Resources>
      
   

        <DataTemplate x:Key="severitytemp" DataType="severities">
            <StackPanel  Orientation="Horizontal">
                <CheckBox IsChecked="{Binding Path=ischecked}"/>
                <TextBlock Margin="10,0,0,0" FontWeight="bold" Foreground="{Binding Path=color}" Text="{Binding Path=name}"/>
              
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <ListBox x:Name="sevbx" OverridesDefaultStyle="True"
                 ItemTemplate="{StaticResource severitytemp}" FontSize="9.333">
    	    <ListBox.Resources>
			 <Style TargetType="ListBox" />
			 </ListBox.Resources>
  </ListBox>
</UserControl>